﻿using System.IO;
using System.Linq;

namespace LEShortcut.Helper
{
    internal static class PathHelper
    {
        internal static string[] ValidatedExtractor(string[] path)
        {
            return (from m in path
                let s = Path.GetExtension(m)
                let ext = string.IsNullOrWhiteSpace(s) ? string.Empty : s.ToUpper()
                where ext == ".LNK" || ext == ".EXE"
                select m).ToArray();
        }
    }
}